package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsNodeBranch = "cms_node_branch"

func init() {
	var r = &CmsNodeBranch{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsNodeBranch struct {
	BranchId   int    `json:"branchId" form:"branchId" column:"branch_id" primary:"true" modify:"false"`
	CourseId   int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	NodeId     int    `json:"nodeId" form:"nodeId" column:"node_id" modify:"true"`
	NodeType   int    `column:"node_type" modify:"true" json:"nodeType" form:"nodeType"`
	BranchName string `form:"branchName" column:"branch_name" modify:"true" json:"branchName"`
	Difficulty int    `modify:"true" json:"difficulty" form:"difficulty" column:"difficulty"`
	Speed      int    `modify:"true" json:"speed" form:"speed" column:"speed"`
	TeachMind  int    `json:"teachMind" form:"teachMind" column:"teach_mind" modify:"true"`
	CreateTime string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime string `form:"updateTime" column:"update_time" modify:"false" json:"updateTime"`
}

func (r *CmsNodeBranch) Name() string {
	return RecordNameCmsNodeBranch
}
